package com.goodboys.base.service;


import com.goodboys.base.service.impl.BaseServiceImpl;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

//@Aspect
//@Component
public class BaseServiceAspect {
    //匹配com.goodboys.service.impl.*.*   包及其子包下的所有类的所有方法
    @Pointcut("execution(public * com.goodboys.service.impl.*.*(..))")
    public void executeService(){
    }

    @Before("executeService()")
    public void doBeforeAdvice(){
//        baseService.map.put("status", 0);
        System.out.println("哈哈哈哈或或或或或或或或或 =----------");
    }



}
